	  $(function() {
        var $header = $('#header-wrapper'),
            $panel = $header.find('.inner');
        // Insert a toggle button
        $header.append('<span class="toggle-button"><a href="/">Search</a></span>');
        // Click the toggle button to slide the panel
        $header.find('.toggle-button a').on("click", function() {
          if ($(this).html() == 'Search') {
            $(this).html('&times;');
          } else {
            $(this).html('Search');
          }
          $panel.slideToggle('slow');
          return false;
        });
      });
      $(function() {
        var $content = $('.list-label-widget-content'),
            $ul = $content.find('ul');       
        $ul.hide();
        $content.append('<span class="togel">Buka Label</span>');
        $content.find('.togel').on("click", function() {
          if ($(this).html() == 'Buka Label') {
            $(this).html('Tutup');
          } else {
            $(this).html('Buka Label');
          }
          $ul.slideToggle('slow');
          return false;
        });
$(window).scroll(function() {
    if($(this).scrollTop() > 200) {
        $('#gotop').fadeIn();
    } else {
        $('#gotop').fadeOut();
    }
});

$('#gotop').hide().click(function() {
    $('html, body').animate({scrollTop:0}, 1000);
    return false;
});
      });    
      jQuery(function() {
        var panelSelector       = '#comments',
            openPanelText       = "Poskan Komentar",
            closePanelText      = "Tutup Komentar",
            slideDownPanelSpeed = 600,
            slideUpPanelSpeed   = 400;
        jQuery(panelSelector).hide()
        .addClass('hompiPanel')
        .before('<a class="openpanel" href="#">' + openPanelText + '<em></em></a>')
        .after('<div class="paneline"></div>');
        jQuery('a.openpanel').toggle(function() {
          jQuery(this).addClass('active').html(closePanelText + '<em></em>');
          jQuery('div.hompiPanel').slideDown(slideDownPanelSpeed);
          return false;
        }, function() {
          jQuery(this).removeClass('active').html(openPanelText + '<em></em>');
          jQuery('div.hompiPanel').slideUp(slideUpPanelSpeed);
          return false;
        });
      });
      (function() {
        if (document.getElementById('comment-holder')) {
          var comments = document.getElementById('comment-holder'),
              icon = comments.getElementsByTagName('span');
          for (var i = 0; i < icon.length; i++) {
            if (icon[i].className == "icon user blog-author") {
              icon[i].parentNode.parentNode.className += " admin-comment";
              icon[i].parentNode.parentNode.parentNode.className += " admin-comment-wrapper";
            }
          }
        }
      })();
      function newWindow(a_str_windowURL, a_str_windowName, a_int_windowWidth, a_int_windowHeight, a_bool_scrollbars, a_bool_resizable, a_bool_menubar, a_bool_toolbar, a_bool_addressbar, a_bool_statusbar, a_bool_fullscreen) {
        var int_windowLeft = (screen.width - a_int_windowWidth) / 2;
        var int_windowTop = (screen.height - a_int_windowHeight) / 2;
        var str_windowProperties = 'height=' + a_int_windowHeight + ',width=' + a_int_windowWidth + ',top=' + int_windowTop + ',left=' + int_windowLeft + ',scrollbars=' + a_bool_scrollbars + ',resizable=' + a_bool_resizable + ',menubar=' + a_bool_menubar + ',toolbar=' + a_bool_toolbar + ',location=' + a_bool_addressbar + ',statusbar=' + a_bool_statusbar + ',fullscreen=' + a_bool_fullscreen + '';
        var obj_window = window.open(a_str_windowURL, a_str_windowName, str_windowProperties)
        if (parseInt(navigator.appVersion) >= 4) {
          obj_window.window.focus();
        }
      }

$(function() {
            function checkWidth() {
                        var windowSize = $(window).width();
            
            if (windowSize < 700) {
                $('#footer .widget-content').hide();
    $('#footer h2:first').addClass('active').next().slideDown('slow');
    $('#footer h2').click(function() {
        if($(this).next().is(':hidden')) {
            $('#footer h2').removeClass('active').next().slideUp('slow');
            $(this).toggleClass('active').next().slideDown('slow');
        }
    });
        }
        else if (windowSize > 700) {
            $('#footer .widget-content').show();
        }
                
        }
		    checkWidth();
            $(window).resize(checkWidth);
    });

      var emoRange    = "#comments-container, #comments p, div.emoWrap",
          putEmoAbove = "#comment-editor";

$(function() {

        if (putEmoAbove) {
                $(putEmoAbove).before('<div class="emoWrap"> :) :( =( :waaa: :s ^_^ :D =D ^:D @@, ;) :yaya: :&#39;( T_T :&#92; :p B) :Q :Ozz 7:( &#92;o/ &#92;m/ **p  0:) ^o^ 7:O</div>');
        }
        function emo(emo, imgRep, emoKey) {
                $(emoRange).each(function() {
                        $(this).html($(this).html()
                        .replace(/<br>(:|;|=|\^)/g, "<br> $1")
                        .replace(emo, " <img src='" + imgRep + "' class='emo delayLoad' alt='" + emoKey + "' />"));
                });
        }
        emo(/\s:\)+/g, "https://nevermore-blog.googlecode.com/svn/blog/emoticon/greensmilies-029.gif", ":)");
        emo(/\s;\)+/g, "https://nevermore-blog.googlecode.com/svn/blog/emoticon/nospamhere.gif", ";)");
        emo(/\s:\(/g, "https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-angry002.gif", ":(");
        emo(/\s=\(/g, "https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-ashamed007.gif", "=(");
        emo(/\s@@,/g, "https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-char022.gif", "@@,");
        emo(/\s:yaya:/ig, "https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-computer004.gif", ":yaya:");
        emo(/\s:s/ig, "https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-confused004.gif", ":s");
        emo(/\s:\\/g, "https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-confused007.gif", ":&#92;");
        emo(/\s:D/g, "https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-cool07.gif", ":D");
        emo(/\s=D/g, "https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-dance005.gif", "=D");
        emo(/\s\^:D/g, "https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-devil03.gif", "^:D");
        emo(/\s\^(\_|)\^/g, "https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-gen003.gif", "^_^");
        emo(/\s:'\(/g, "https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-gen017.gif", ":&#39;(");
        emo(/\s:waaa:/g, "https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-greet024.gif", ":waaa:");
        emo(/\sT_T/ig, "https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-happy005.gif", "T_T");
        emo(/\sB\)/g, "https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-laughing004.gif", "B)");
        emo(/\s:Q/ig, "https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-laughing013.gif", ":Q");
        emo(/\s\*\*p/ig, "https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-rolleyes010.gif", "**p");
        emo(/\s7:\(/g, "https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-sad009.gif", "7:(");
        emo(/\s:p/ig, "https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-sad021.gif", ":p");
        emo(/\s:Oz+/ig, "https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-scared009.gif", ":Ozz");
        emo(/\s7:O/ig, "https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-shocked003.gif", "7:O");
        emo(/\s\\o\//ig, "https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-signs002.gif", "&#92;o/");
        emo(/\s\\m\//ig, "https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-think004.gif", "&#92;m/");
        emo(/\s&lt;3/ig, "https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-transport027.gif", "&amp;amp;lt;3");
        emo(/\s0:\)+/ig, "https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-violent004.gif", "0:)");
        emo(/\s\^o\^/ig, "https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-whacky099.gif", "^o^");


        // Show alert one times
        $('.emoWrap').one("click", function() {
                if(emoMessage) {
                        alert(emoMessage);
                }
        });

	// Click to show the code!
	$('.emo').css('cursor', 'pointer').live("click", function(e) {
		$('.emoKey').remove();
		$(this).after('<input class="emoKey" type="text" size="6" value=" ' + this.alt + '" />');
		$('.emoKey').trigger("select");
		e.stopPropagation();
	});
	$(document).on("click", function() {
		$('.emoKey').remove();
	});

});

$(function() {

    var $form = $('#ajax-search-form'),
        $wrap = $('#main-wrapper'),
        $main = $('#main'),
        $input = $form.find(':text');
    
    // Append a search result container to the search form
    $form.append('<div id="search-result"></div>');
    var $result_container = $('#search-result');
    
    // When the keyword is submitted.
    $form.on("submit", function() {

        // Get the input value
        var keyword = $input.val();

        // Show the search result container and insert a `Loading...` text
       $main.fadeOut(); $result_container.show().html('Loading...');

        // Get the blog JSON via $.ajax()
        // The URL format: http://blog_name.blogspot.com/feeds/posts/summary?alt=json-in-script&q={THE_KEYWORD}&max-results=9999
        $.ajax({
            url: 'http://nevermore-404.blogspot.com/feeds/posts/summary?alt=json-in-script&q=' + keyword + '&max-results=9999',
            type: 'get',
            dataType: 'jsonp',

            // If success, grab the search result list...
            success: function(json) {
                var entry = json.feed.entry,
                    link, summary, thumbnail, skeleton = "";
                if (entry !== undefined) {
                    skeleton = '<h4>Search results for keyword &#8220;' + keyword + '&#8221;</h4>';
                    skeleton += '<a class="close" href="/">&times;</a><ol>';
                    for (var i = 0; i < entry.length; i++) {
                        for (var j = 0; j < entry[i].link.length; j++) {
                            if (entry[i].link[j].rel == "alternate") {
                                link = entry[i].link[j].href;
                            }
                        }
                        
                        var mark = new RegExp(keyword, "ig");
                        thumbnail = ("media$thumbnail" in entry[i]) ? '<img alt="" src="' + entry[i].media$thumbnail.url.replace(/\/s[0-9]+\-c/, "/s40-c") + '" width="40" height="40">' : "";
                        summary = ("summary" in entry[i]) ? entry[i].summary.$t.replace(/<br ?\/?>/ig, " ").replace(/<.*?>/g, "").replace(/[<>]/g, "") : "";
                        summary = summary.length > 100 ? summary.substring(0, 100) + '&hellip;' : summary;
                        skeleton += '<li>' + thumbnail + '<a href="' + link + '">' + entry[i].title.$t.replace(mark, "<span style=\'background-color:yellow;text-decoration:underline;\'>" + '</a><br>' + summary + '</li>';
                    }
                    skeleton += '</ol>';
                    $result_container.html(skeleton);
                } else {
                    // If the JSON is empty ... (entry === undefined)
                    // Show the `not found` or `no result` message
                    $result_container.html('<a class="close" href="/">&times;</a><strong>No result!</strong>');
                }
            },
            error: function() {

                // If error, show an error message
                $result_container.html('<a class="close" href="/">&times;</a><strong>Error loading feed.</strong>');
            }
        });
        return false;
    });

    // Fade out the search result container if the close button is clicked
$wrap.on("click", ".close", function() {
        $main.fadeIn();
        $result_container.fadeOut();
        return false;
    });

});

          $(function() {
            var $pager = $('.index #blog-pager'),
                $posts = $('.index .blog-posts');
            $pager.find('#blog-pager-newer-link').remove();
            $pager.on("click", "#blog-pager-older-link a", function() {
              $.get(this.href, {}, function(data) {
                var source = $(data).find('.post').length ? $(data) : $('<div></div>');
                $posts.append(source.find('.blog-posts').html());
                $pager.html(source.find('#blog-pager-older-link').clone());
              }, "html");
              $(this).replaceWith('<span>Memuat...</span>');
              return false;
            });
          });
          
          var cm_config = {
    home_page: "http://nevermore-404.blogspot.com",
    max_result: 7,
    t_w: 32,
    t_h: 32,
    summary: 9999,
    new_tab_link: true,
    ct_id: "comments-container",
    new_cm: " Komentar Baru!",
    interval: 30000,
    alert: function(totalComments) {
        document.getElementById('show-total').innerHTML = totalComments;
        document.getElementById('show-total').style.display = 'block';
    }
};

$(function() {
    $('#kontainer .close').click(function() {
        $('#kontainer').fadeOut();
    });
    $('.notif').click(function() {
        $('#kontainer').css('display', 'block');
    });
});

function emo(e,t,n){$(emoRange).each(function(){$(this).html($(this).html().replace(/<br>(:|;|=|\^)/g,"<br> $1").replace(e," <img src='"+t+"' class='emo delayLoad' alt='"+n+"' />"))})}function showRecentComments(e){var t=e.feed.entry,n=parseInt(e.feed.openSearch$totalResults.$t,10),i="",s=tt_cm,o=cm_config_defaults;var a=n-s>50?"50+":n-s;if(s<n&&a<51){if(o.alert===true){alert(a+o.new_cm)}else if(o.alert===false){document.title="("+a+o.new_cm+") "+doc_title}else{o.alert(a,o.new_cm)}}i='<ul class="cm-outer">';for(var f=0;f<t.length;f++){for(var l=0;l<t[f].link.length;l++){if(t[f].link[l].rel=="alternate"){link=t[f].link[l].href;break}}var c=link.lastIndexOf("/")+1,h=link.lastIndexOf("."),p=link.split("-").join(" ").substring(c,h)+"&hellip;";author=t[f].author[0],name=author.name.$t,avatar=author.gd$image.src.replace(/\/s[0-9]+(\-c|\/)/,"/s"+o.t_w+"$1").replace(/http\:\/\/www.google.com\/url\?source\=imglanding(.*?)q\=/i,"").replace(/\.(jpg|jpeg|png|bmp|gif)(.*?)$/i,".$1"),profile=author.uri?author.uri.$t:"#nope",u=t[f].id.$t.replace(/^.*?blog\-([0-9]+).*?post\-([0-9]+)/,"http://www.blogger.com/delete-comment.g?blogID=$1&postID=$2"),r=t[f]["thr$in-reply-to"].source.split("default/")[1],d=t[f].id.$t.replace(/<i rel="image">(.*?)<\/i>/ig,"<img src='$1' class='center incomment' alt='Loading...'>").replace(/^.*?blog\-([0-9]+).*?post\-([0-9]+)/,"http://www.blogger.com/comment-iframe.g?blogID=$1&postID="+r+"&parentID=$2"),date=t[f].gd$extendedProperty[1].value,content="content"in t[f]?t[f].content.$t.replace(/<i rel="image">(.*?)<\/i>/ig,"<img class='emo' src='$1' alt='Loading...'>").replace(/<i rel="pre">(.*?)<\/i>/ig,"<pre><code>$1</code></pre>").replace(/<i rel="code">(.*?)<\/i>/ig,"<code>$1</code>").replace(/<i rel="anchor">(.*?)<\/i>/ig,"<a class='allow' href='$1'>{link}</a>"):"",nt=o.new_tab_link?' target="_blank"':"";content=content.length>o.summary?content.substring(0,o.summary)+"&hellip;":content;i+="<li>";i+='<div class="cm-header"><a href="'+profile+'" title="'+name+'"'+nt+'><img alt="Loading..." style="width:'+o.t_w+"px;height:"+o.t_h+'px;" src="'+avatar+'"></a><span class="author"><a href="'+profile+'" rel="nofollow">'+name+'</a> pada <a href="'+link+'" title="'+p+'"'+nt+" rel=>"+p+"</a></div></span>";i+='<div class="cm-content">';i+='<span class="cm-text">'+content+"</span>";i+='<div class="cm-footer">'+date+' <a href="'+d+'" onclick="window.open(this.href,&#39;_cf&#39;,&#39;scrollbars=1,width=470,height=250,left=355,top=135&#39;);return false;" title="Balas komentar">Balas</a> <a href="'+u+'"  title="Hapus komentar" target="_blank">Hapus</a></span> </span>';i+="</div></li>"}i+="</ul>";document.getElementById(o.ct_id).innerHTML=i;emo(/\s:\)+/g,"https://nevermore-blog.googlecode.com/svn/blog/emoticon/greensmilies-029.gif",":)");emo(/\s;\)+/g,"https://nevermore-blog.googlecode.com/svn/blog/emoticon/nospamhere.gif",";)");emo(/\s:\(/g,"https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-angry002.gif",":(");emo(/\s=\(/g,"https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-ashamed007.gif","=(");emo(/\s@@,/g,"https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-char022.gif","@@,");emo(/\s:yaya:/ig,"https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-computer004.gif",":yaya:");emo(/\s:s/ig,"https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-confused004.gif",":s");emo(/\s:\\/g,"https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-confused007.gif",":&#92;");emo(/\s:D/g,"https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-cool07.gif",":D");emo(/\s=D/g,"https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-dance005.gif","=D");emo(/\s\^:D/g,"https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-devil03.gif","^:D");emo(/\s\^(\_|)\^/g,"https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-gen003.gif","^_^");emo(/\s:'\(/g,"https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-gen017.gif",":&#39;(");emo(/\s:waaa:/g,"https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-greet024.gif",":waaa:");emo(/\sT_T/ig,"https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-happy005.gif","T_T");emo(/\sB\)/g,"https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-laughing004.gif","B)");emo(/\s:Q/ig,"https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-laughing013.gif",":Q");emo(/\s\*\*p/ig,"https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-rolleyes010.gif","**p");emo(/\s7:\(/g,"https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-sad009.gif","7:(");emo(/\s:p/ig,"https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-sad021.gif",":p");emo(/\s:Oz+/ig,"https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-scared009.gif",":Ozz");emo(/\s7:O/ig,"https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-shocked003.gif","7:O");emo(/\s\\o\//ig,"https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-signs002.gif","&#92;o/");emo(/\s\\m\//ig,"https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-think004.gif","&#92;m/");emo(/\s&lt;3/ig,"https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-transport027.gif","&amp;lt;3");emo(/\s0:\)+/ig,"https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-violent004.gif","0:)");emo(/\s\^o\^/ig,"https://nevermore-blog.googlecode.com/svn/blog/emoticon/smiley-whacky099.gif","^o^");_cookie.set("tt_cm",n,7e3);tt_cm=n}var cm_config_defaults={home_page:"http://www.dte.web.id",max_result:7,t_w:32,t_h:32,summary:"default",new_tab_link:true,ct_id:"comments-container",new_cm:" Komentar Baru!",interval:3e4,alert:true},_cookie={set:function(e,t,n){var r,i;if(n){r=new Date;r.setTime(r.getTime()+n*24*60*60*1e3);i="; expires="+r.toGMTString()}else{i=""}document.cookie=e+"="+t+i+"; path=/"},get:function(e){var t=e+"=",n=document.cookie.split(";"),r;for(var i=0;i<n.length;i++){r=n[i];while(r.charAt(0)==" "){r=r.substring(1,r.length)}if(r.indexOf(t)==0){return r.substring(t.length,r.length)}}return null},del:function(e){this.set(e,"",-1)}},tt_cm=_cookie.get("tt_cm")?_cookie.get("tt_cm"):0,doc_title=document.title;for(var i in cm_config_defaults){cm_config_defaults[i]=typeof cm_config[i]=="undefined"?cm_config_defaults[i]:cm_config[i]}(function(){var e=document.getElementsByTagName("head")[0],t=document.createElement("script"),n=cm_config_defaults;t.type="text/javascript";t.id="cm-feed-script";t.src=n.home_page+"/feeds/comments/default?alt=json-in-script&redirect=false&max-results="+n.max_result+"&callback=showRecentComments";e.appendChild(t);setInterval(function(){var t=document.createElement("script");t.type="text/javascript";t.id="cm-feed-script";t.src=n.home_page+"/feeds/comments/default?alt=json-in-script&redirect=false&max-results="+n.max_result+"&callback=showRecentComments";var r=document.getElementById("cm-feed-script");r.parentNode.removeChild(r);e.appendChild(t)},n.interval)})()